package org.jix.gbook.auth.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.jix.framework.common.exception.BaseExceptionInterface;

/**
 * @author stark
 * @date 2025/5/10 19:46
 * @description
 **/

@AllArgsConstructor
@Getter
public enum ResponseCodeEnum implements BaseExceptionInterface {

    // ----------- 通用异常状态码 -----------
    SYSTEM_ERROR("AUTH-10000", "网络异常，请检查网络配置......"),
    PARAM_NOT_VALID("AUTH-10001", "参数错误"),

    // ----------- 业务异常状态码 -----------
    VERIFICATION_CODE_SEND_FREQUENTLY("AUTH-20000", "发过了，你先找个两分钟，实在没有再来找我"),
    VERIFICATION_CODE_ERROR("AUTH-20001","不对，我发给你的不是这个"),
    LOGIN_TYPE_ERROR("AUTH-20002", "登录类型错误"),
    USER_NOT_FOUND("AUTH-20003", "没这人"),
    PHONE_OR_PASSWORD_ERROR("AUTH-20004", "手机号或密码错误"),
    LOGIN_FAIL("AUTH-20005","登录失败"),
    ;

    // 异常码
    private final String errorCode;
    // 错误信息
    private final String errorMessage;
}
